namespace QMVnSoft.Invoices
{
    using QMVnSoft;
    using QMVnSoft.Controls;
    using QMVnSoft.Controls.ChildGridControls;
    using QMVnSoft.DAL;
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormCTBGViewer : FormHistoryViewer
    {
        private DataGridViewTextBoxColumn Column10;
        private OptionColumn Column11;
        private SearchColumn Column12;
        private SearchColumn Column13;
        private DataGridViewTextBoxColumn Column14;
        private NumericColumn Column15;
        private NumericColumn Column16;
        private NumericColumn Column17;
        private NumericColumn Column18;
        private OptionColumn Column19;
        private SearchColumn Column9;
        private IContainer components;
        private GridDetail grdDetail;
        private LabelControl lblDesc_EN;
        private LabelControl lblDia_Chi;
        private LabelControl lblDien_Giai;
        private LabelControl lblEmail;
        private LabelControl lblGhi_Chu;
        private LabelControl lblMa_Bp;
        private LabelControl lblMa_Dt;
        private LabelControl lblMa_Hd;
        private LabelControl lblMa_Nv;
        private LabelControl lblMa_Tte;
        private LabelControl lblNgay_HL1;
        private LabelControl lblNgay_HL2;
        private LabelControl lblOng_Ba;
        private LabelControl lblPhones;
        private LabelControl lblTTien_Nt;
        private CTBGDataAccess oMethod = new CTBGDataAccess();
        private TextControl txtDesc_EN;
        private TextControl txtDia_Chi;
        private TextControl txtDien_Giai;
        private TextControl txtEmail;
        private TextControl txtGhi_Chu;
        private TextSearch txtMa_Bp;
        private TextSearch txtMa_Dt;
        private TextSearch txtMa_Hd;
        private TextSearch txtMa_Nv;
        private TextOption txtMa_Tte;
        public TextDate txtNgay_HL1;
        public TextDate txtNgay_HL2;
        private TextControl txtOng_Ba;
        private TextControl txtPhones;
        private TextControl txtTen_Bp;
        private TextControl txtTen_Dt;
        private TextControl txtTen_Hd;
        private TextControl txtTen_Nv;
        private TextNumeric txtTTien_Nt;
        private TextNumeric txtTy_Gia;

        public FormCTBGViewer()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormCTBGViewer));
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
            this.txtDesc_EN = new QMVnSoft.Controls.TextControl();
            this.txtDien_Giai = new QMVnSoft.Controls.TextControl();
            this.txtTen_Hd = new QMVnSoft.Controls.TextControl();
            this.txtTen_Bp = new QMVnSoft.Controls.TextControl();
            this.lblDesc_EN = new QMVnSoft.Controls.LabelControl();
            this.lblDien_Giai = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Hd = new QMVnSoft.Controls.TextSearch();
            this.lblMa_Hd = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Bp = new QMVnSoft.Controls.TextSearch();
            this.lblMa_Bp = new QMVnSoft.Controls.LabelControl();
            this.lblMa_Nv = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Nv = new QMVnSoft.Controls.TextSearch();
            this.txtTen_Nv = new QMVnSoft.Controls.TextControl();
            this.lblGhi_Chu = new QMVnSoft.Controls.LabelControl();
            this.txtGhi_Chu = new QMVnSoft.Controls.TextControl();
            this.txtMa_Tte = new QMVnSoft.Controls.TextOption();
            this.txtTy_Gia = new QMVnSoft.Controls.TextNumeric();
            this.txtDia_Chi = new QMVnSoft.Controls.TextControl();
            this.txtOng_Ba = new QMVnSoft.Controls.TextControl();
            this.txtTen_Dt = new QMVnSoft.Controls.TextControl();
            this.lblMa_Tte = new QMVnSoft.Controls.LabelControl();
            this.txtMa_Dt = new QMVnSoft.Controls.TextSearch();
            this.lblDia_Chi = new QMVnSoft.Controls.LabelControl();
            this.lblOng_Ba = new QMVnSoft.Controls.LabelControl();
            this.lblMa_Dt = new QMVnSoft.Controls.LabelControl();
            this.lblPhones = new QMVnSoft.Controls.LabelControl();
            this.lblEmail = new QMVnSoft.Controls.LabelControl();
            this.txtPhones = new QMVnSoft.Controls.TextControl();
            this.txtEmail = new QMVnSoft.Controls.TextControl();
            this.txtNgay_HL1 = new QMVnSoft.Controls.TextDate();
            this.lblNgay_HL1 = new QMVnSoft.Controls.LabelControl();
            this.lblNgay_HL2 = new QMVnSoft.Controls.LabelControl();
            this.txtNgay_HL2 = new QMVnSoft.Controls.TextDate();
            this.grdDetail = new QMVnSoft.Controls.GridDetail();
            this.Column9 = new QMVnSoft.Controls.ChildGridControls.SearchColumn();
            this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column11 = new QMVnSoft.Controls.ChildGridControls.OptionColumn();
            this.Column12 = new QMVnSoft.Controls.ChildGridControls.SearchColumn();
            this.Column13 = new QMVnSoft.Controls.ChildGridControls.SearchColumn();
            this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.Column15 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column16 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column17 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column18 = new QMVnSoft.Controls.ChildGridControls.NumericColumn();
            this.Column19 = new QMVnSoft.Controls.ChildGridControls.OptionColumn();
            this.txtTTien_Nt = new QMVnSoft.Controls.TextNumeric();
            this.lblTTien_Nt = new QMVnSoft.Controls.LabelControl();
            ((System.ComponentModel.ISupportInitialize)(this.grdDetail)).BeginInit();
            this.SuspendLayout();
            // 
            // lblPhan_Loai
            // 
            this.lblPhan_Loai.Location = new System.Drawing.Point(12, 588);
            // 
            // txtMa_Loai1
            // 
            this.txtMa_Loai1.Location = new System.Drawing.Point(99, 585);
            this.txtMa_Loai1.TabIndex = 19;
            // 
            // txtMa_Loai2
            // 
            this.txtMa_Loai2.Location = new System.Drawing.Point(327, 585);
            this.txtMa_Loai2.TabIndex = 20;
            // 
            // txtMa_Loai3
            // 
            this.txtMa_Loai3.Location = new System.Drawing.Point(555, 585);
            this.txtMa_Loai3.TabIndex = 21;
            // 
            // txtNgay_Ct
            // 
            this.txtNgay_Ct.TabIndex = 1;
            // 
            // txtNgay_Ps
            // 
            this.txtNgay_Ps.TabIndex = 0;
            // 
            // txtSo_Ct
            // 
            this.txtSo_Ct.TabIndex = 2;
            // 
            // txtDesc_EN
            // 
            this.txtDesc_EN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDesc_EN.CheckTextSearched = false;
            this.txtDesc_EN.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDesc_EN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDesc_EN.Location = new System.Drawing.Point(487, 175);
            this.txtDesc_EN.MaxLength = 254;
            this.txtDesc_EN.Name = "txtDesc_EN";
            this.txtDesc_EN.OldValue = null;
            this.txtDesc_EN.ReadOnly = true;
            this.txtDesc_EN.Size = new System.Drawing.Size(295, 20);
            this.txtDesc_EN.TabIndex = 14;
            this.txtDesc_EN.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.InvoiceDescription;
            this.txtDesc_EN.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDesc_EN.Value = ((object)(resources.GetObject("txtDesc_EN.Value")));
            // 
            // txtDien_Giai
            // 
            this.txtDien_Giai.CheckTextSearched = false;
            this.txtDien_Giai.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDien_Giai.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDien_Giai.Location = new System.Drawing.Point(99, 175);
            this.txtDien_Giai.MaxLength = 254;
            this.txtDien_Giai.Name = "txtDien_Giai";
            this.txtDien_Giai.OldValue = null;
            this.txtDien_Giai.ReadOnly = true;
            this.txtDien_Giai.Size = new System.Drawing.Size(296, 20);
            this.txtDien_Giai.TabIndex = 13;
            this.txtDien_Giai.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.InvoiceDescription;
            this.txtDien_Giai.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDien_Giai.Value = ((object)(resources.GetObject("txtDien_Giai.Value")));
            // 
            // txtTen_Hd
            // 
            this.txtTen_Hd.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Hd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Hd.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Hd.CheckTextSearched = false;
            this.txtTen_Hd.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Hd.Enabled = false;
            this.txtTen_Hd.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Hd.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Hd.Location = new System.Drawing.Point(223, 94);
            this.txtTen_Hd.Name = "txtTen_Hd";
            this.txtTen_Hd.OldValue = null;
            this.txtTen_Hd.Size = new System.Drawing.Size(559, 13);
            this.txtTen_Hd.TabIndex = 86;
            this.txtTen_Hd.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Hd.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Hd.Value = ((object)(resources.GetObject("txtTen_Hd.Value")));
            // 
            // txtTen_Bp
            // 
            this.txtTen_Bp.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Bp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Bp.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Bp.CheckTextSearched = false;
            this.txtTen_Bp.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Bp.Enabled = false;
            this.txtTen_Bp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Bp.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Bp.Location = new System.Drawing.Point(223, 73);
            this.txtTen_Bp.Name = "txtTen_Bp";
            this.txtTen_Bp.OldValue = null;
            this.txtTen_Bp.Size = new System.Drawing.Size(559, 13);
            this.txtTen_Bp.TabIndex = 87;
            this.txtTen_Bp.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Bp.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Bp.Value = ((object)(resources.GetObject("txtTen_Bp.Value")));
            // 
            // lblDesc_EN
            // 
            this.lblDesc_EN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblDesc_EN.AutoSize = true;
            this.lblDesc_EN.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDesc_EN.Location = new System.Drawing.Point(410, 178);
            this.lblDesc_EN.Name = "lblDesc_EN";
            this.lblDesc_EN.Size = new System.Drawing.Size(71, 14);
            this.lblDesc_EN.TabIndex = 80;
            this.lblDesc_EN.Text = "Diễn giải (EN)";
            // 
            // lblDien_Giai
            // 
            this.lblDien_Giai.AutoSize = true;
            this.lblDien_Giai.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDien_Giai.Location = new System.Drawing.Point(12, 178);
            this.lblDien_Giai.Name = "lblDien_Giai";
            this.lblDien_Giai.Size = new System.Drawing.Size(73, 14);
            this.lblDien_Giai.TabIndex = 81;
            this.lblDien_Giai.Text = "Diễn giải (VN)";
            // 
            // txtMa_Hd
            // 
            this.txtMa_Hd.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Hd.CheckTextSearched = false;
            this.txtMa_Hd.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Hd.EmptyIsValid = true;
            this.txtMa_Hd.FieldDisplay = "Ten_Hd";
            this.txtMa_Hd.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Hd.FoundIsValid = true;
            this.txtMa_Hd.Location = new System.Drawing.Point(99, 91);
            this.txtMa_Hd.MaxLength = 32;
            this.txtMa_Hd.Name = "txtMa_Hd";
            this.txtMa_Hd.OldValue = null;
            this.txtMa_Hd.ReadOnly = true;
            this.txtMa_Hd.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Hd.TabIndex = 7;
            this.txtMa_Hd.TableName = "DMHD";
            this.txtMa_Hd.TextDisplay = this.txtTen_Hd;
            this.txtMa_Hd.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Hd.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Hd.Value = ((object)(resources.GetObject("txtMa_Hd.Value")));
            // 
            // lblMa_Hd
            // 
            this.lblMa_Hd.AutoSize = true;
            this.lblMa_Hd.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Hd.Location = new System.Drawing.Point(12, 94);
            this.lblMa_Hd.Name = "lblMa_Hd";
            this.lblMa_Hd.Size = new System.Drawing.Size(54, 14);
            this.lblMa_Hd.TabIndex = 82;
            this.lblMa_Hd.Text = "Hợp đồng";
            // 
            // txtMa_Bp
            // 
            this.txtMa_Bp.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Bp.CheckTextSearched = false;
            this.txtMa_Bp.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Bp.EmptyIsValid = true;
            this.txtMa_Bp.FieldDisplay = "Ten_Bp";
            this.txtMa_Bp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Bp.FoundIsValid = true;
            this.txtMa_Bp.Location = new System.Drawing.Point(99, 70);
            this.txtMa_Bp.MaxLength = 32;
            this.txtMa_Bp.Name = "txtMa_Bp";
            this.txtMa_Bp.OldValue = null;
            this.txtMa_Bp.ReadOnly = true;
            this.txtMa_Bp.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Bp.TabIndex = 6;
            this.txtMa_Bp.TableName = "DMBP";
            this.txtMa_Bp.TextDisplay = this.txtTen_Bp;
            this.txtMa_Bp.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Bp.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Bp.Value = ((object)(resources.GetObject("txtMa_Bp.Value")));
            // 
            // lblMa_Bp
            // 
            this.lblMa_Bp.AutoSize = true;
            this.lblMa_Bp.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Bp.Location = new System.Drawing.Point(12, 73);
            this.lblMa_Bp.Name = "lblMa_Bp";
            this.lblMa_Bp.Size = new System.Drawing.Size(47, 14);
            this.lblMa_Bp.TabIndex = 83;
            this.lblMa_Bp.Text = "Bộ phận";
            // 
            // lblMa_Nv
            // 
            this.lblMa_Nv.AutoSize = true;
            this.lblMa_Nv.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Nv.Location = new System.Drawing.Point(12, 52);
            this.lblMa_Nv.Name = "lblMa_Nv";
            this.lblMa_Nv.Size = new System.Drawing.Size(55, 14);
            this.lblMa_Nv.TabIndex = 84;
            this.lblMa_Nv.Text = "Nhân viên";
            // 
            // txtMa_Nv
            // 
            this.txtMa_Nv.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Nv.CheckTextSearched = false;
            this.txtMa_Nv.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Nv.EmptyIsValid = true;
            this.txtMa_Nv.FieldDisplay = "Ten_Dt";
            this.txtMa_Nv.FirstFilter = "Is_Stop = \'1\'";
            this.txtMa_Nv.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Nv.Location = new System.Drawing.Point(99, 49);
            this.txtMa_Nv.MaxLength = 32;
            this.txtMa_Nv.Name = "txtMa_Nv";
            this.txtMa_Nv.OldValue = null;
            this.txtMa_Nv.ReadOnly = true;
            this.txtMa_Nv.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Nv.TabIndex = 5;
            this.txtMa_Nv.TableName = "DMDT";
            this.txtMa_Nv.TextDisplay = this.txtTen_Nv;
            this.txtMa_Nv.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Nv.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Nv.Value = ((object)(resources.GetObject("txtMa_Nv.Value")));
            // 
            // txtTen_Nv
            // 
            this.txtTen_Nv.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Nv.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Nv.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Nv.CheckTextSearched = false;
            this.txtTen_Nv.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Nv.Enabled = false;
            this.txtTen_Nv.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Nv.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Nv.Location = new System.Drawing.Point(223, 52);
            this.txtTen_Nv.Name = "txtTen_Nv";
            this.txtTen_Nv.OldValue = null;
            this.txtTen_Nv.Size = new System.Drawing.Size(559, 13);
            this.txtTen_Nv.TabIndex = 85;
            this.txtTen_Nv.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Nv.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Nv.Value = ((object)(resources.GetObject("txtTen_Nv.Value")));
            // 
            // lblGhi_Chu
            // 
            this.lblGhi_Chu.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblGhi_Chu.AutoSize = true;
            this.lblGhi_Chu.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblGhi_Chu.Location = new System.Drawing.Point(17, 478);
            this.lblGhi_Chu.Name = "lblGhi_Chu";
            this.lblGhi_Chu.Size = new System.Drawing.Size(44, 14);
            this.lblGhi_Chu.TabIndex = 81;
            this.lblGhi_Chu.Text = "Ghi chú";
            // 
            // txtGhi_Chu
            // 
            this.txtGhi_Chu.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtGhi_Chu.CheckTextSearched = false;
            this.txtGhi_Chu.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtGhi_Chu.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtGhi_Chu.Location = new System.Drawing.Point(104, 475);
            this.txtGhi_Chu.MaxLength = 254;
            this.txtGhi_Chu.Name = "txtGhi_Chu";
            this.txtGhi_Chu.OldValue = null;
            this.txtGhi_Chu.ReadOnly = true;
            this.txtGhi_Chu.Size = new System.Drawing.Size(678, 20);
            this.txtGhi_Chu.TabIndex = 16;
            this.txtGhi_Chu.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.InvoiceDescription;
            this.txtGhi_Chu.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtGhi_Chu.Value = ((object)(resources.GetObject("txtGhi_Chu.Value")));
            // 
            // txtMa_Tte
            // 
            this.txtMa_Tte.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtMa_Tte.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Tte.CheckTextSearched = false;
            this.txtMa_Tte.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtMa_Tte.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Tte.InputMask = "USD,VND";
            this.txtMa_Tte.Location = new System.Drawing.Point(697, 28);
            this.txtMa_Tte.Name = "txtMa_Tte";
            this.txtMa_Tte.OldValue = null;
            this.txtMa_Tte.ReadOnly = true;
            this.txtMa_Tte.Size = new System.Drawing.Size(28, 20);
            this.txtMa_Tte.TabIndex = 3;
            this.txtMa_Tte.Text = "USD";
            this.txtMa_Tte.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtMa_Tte.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtMa_Tte.Value = "USD";
            // 
            // txtTy_Gia
            // 
            this.txtTy_Gia.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTy_Gia.BackColor = System.Drawing.Color.White;
            this.txtTy_Gia.DisabledBackColor = System.Drawing.Color.Empty;
            this.txtTy_Gia.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTy_Gia.ForeColor = System.Drawing.Color.Black;
            this.txtTy_Gia.Location = new System.Drawing.Point(724, 28);
            this.txtTy_Gia.Name = "txtTy_Gia";
            this.txtTy_Gia.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTy_Gia.OldValue = null;
            this.txtTy_Gia.ReadOnly = true;
            this.txtTy_Gia.Size = new System.Drawing.Size(58, 20);
            this.txtTy_Gia.TabIndex = 4;
            this.txtTy_Gia.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTy_Gia.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ExchangeRate;
            this.txtTy_Gia.Value = ((object)(resources.GetObject("txtTy_Gia.Value")));
            // 
            // txtDia_Chi
            // 
            this.txtDia_Chi.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDia_Chi.CheckTextSearched = false;
            this.txtDia_Chi.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtDia_Chi.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtDia_Chi.Location = new System.Drawing.Point(487, 133);
            this.txtDia_Chi.MaxLength = 128;
            this.txtDia_Chi.Name = "txtDia_Chi";
            this.txtDia_Chi.OldValue = null;
            this.txtDia_Chi.ReadOnly = true;
            this.txtDia_Chi.Size = new System.Drawing.Size(295, 20);
            this.txtDia_Chi.TabIndex = 10;
            this.txtDia_Chi.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtDia_Chi.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtDia_Chi.Value = ((object)(resources.GetObject("txtDia_Chi.Value")));
            // 
            // txtOng_Ba
            // 
            this.txtOng_Ba.CheckTextSearched = false;
            this.txtOng_Ba.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtOng_Ba.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtOng_Ba.Location = new System.Drawing.Point(99, 133);
            this.txtOng_Ba.MaxLength = 128;
            this.txtOng_Ba.Name = "txtOng_Ba";
            this.txtOng_Ba.OldValue = null;
            this.txtOng_Ba.ReadOnly = true;
            this.txtOng_Ba.Size = new System.Drawing.Size(296, 20);
            this.txtOng_Ba.TabIndex = 9;
            this.txtOng_Ba.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtOng_Ba.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtOng_Ba.Value = ((object)(resources.GetObject("txtOng_Ba.Value")));
            // 
            // txtTen_Dt
            // 
            this.txtTen_Dt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Dt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(217)))), ((int)(((byte)(247)))));
            this.txtTen_Dt.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Dt.CheckTextSearched = false;
            this.txtTen_Dt.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Enabled = false;
            this.txtTen_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Dt.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Dt.Location = new System.Drawing.Point(223, 115);
            this.txtTen_Dt.Name = "txtTen_Dt";
            this.txtTen_Dt.OldValue = null;
            this.txtTen_Dt.Size = new System.Drawing.Size(559, 13);
            this.txtTen_Dt.TabIndex = 97;
            this.txtTen_Dt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.txtTen_Dt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtTen_Dt.Value = ((object)(resources.GetObject("txtTen_Dt.Value")));
            // 
            // lblMa_Tte
            // 
            this.lblMa_Tte.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblMa_Tte.AutoSize = true;
            this.lblMa_Tte.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Tte.Location = new System.Drawing.Point(652, 31);
            this.lblMa_Tte.Name = "lblMa_Tte";
            this.lblMa_Tte.Size = new System.Drawing.Size(39, 14);
            this.lblMa_Tte.TabIndex = 93;
            this.lblMa_Tte.Text = "Tiền tệ";
            // 
            // txtMa_Dt
            // 
            this.txtMa_Dt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Dt.CheckTextSearched = false;
            this.txtMa_Dt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Dt.EmptyIsValid = true;
            this.txtMa_Dt.FieldDisplay = "Ten_Dt";
            this.txtMa_Dt.FirstFilter = "Is_Stop = \'1\'";
            this.txtMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Dt.Location = new System.Drawing.Point(99, 112);
            this.txtMa_Dt.MaxLength = 32;
            this.txtMa_Dt.Name = "txtMa_Dt";
            this.txtMa_Dt.OldValue = null;
            this.txtMa_Dt.ReadOnly = true;
            this.txtMa_Dt.Size = new System.Drawing.Size(118, 20);
            this.txtMa_Dt.TabIndex = 8;
            this.txtMa_Dt.TableName = "DMDT";
            this.txtMa_Dt.TextDisplay = this.txtTen_Dt;
            this.txtMa_Dt.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Dt.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Dt.Value = ((object)(resources.GetObject("txtMa_Dt.Value")));
            // 
            // lblDia_Chi
            // 
            this.lblDia_Chi.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblDia_Chi.AutoSize = true;
            this.lblDia_Chi.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblDia_Chi.Location = new System.Drawing.Point(441, 136);
            this.lblDia_Chi.Name = "lblDia_Chi";
            this.lblDia_Chi.Size = new System.Drawing.Size(40, 14);
            this.lblDia_Chi.TabIndex = 95;
            this.lblDia_Chi.Text = "Địa chỉ";
            // 
            // lblOng_Ba
            // 
            this.lblOng_Ba.AutoSize = true;
            this.lblOng_Ba.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblOng_Ba.Location = new System.Drawing.Point(12, 136);
            this.lblOng_Ba.Name = "lblOng_Ba";
            this.lblOng_Ba.Size = new System.Drawing.Size(42, 14);
            this.lblOng_Ba.TabIndex = 96;
            this.lblOng_Ba.Text = "Ông bà";
            // 
            // lblMa_Dt
            // 
            this.lblMa_Dt.AutoSize = true;
            this.lblMa_Dt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Dt.Location = new System.Drawing.Point(12, 115);
            this.lblMa_Dt.Name = "lblMa_Dt";
            this.lblMa_Dt.Size = new System.Drawing.Size(55, 14);
            this.lblMa_Dt.TabIndex = 94;
            this.lblMa_Dt.Text = "Đối tượng";
            // 
            // lblPhones
            // 
            this.lblPhones.AutoSize = true;
            this.lblPhones.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblPhones.Location = new System.Drawing.Point(12, 157);
            this.lblPhones.Name = "lblPhones";
            this.lblPhones.Size = new System.Drawing.Size(55, 14);
            this.lblPhones.TabIndex = 96;
            this.lblPhones.Text = "Điện thoại";
            // 
            // lblEmail
            // 
            this.lblEmail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblEmail.AutoSize = true;
            this.lblEmail.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblEmail.Location = new System.Drawing.Point(450, 157);
            this.lblEmail.Name = "lblEmail";
            this.lblEmail.Size = new System.Drawing.Size(31, 14);
            this.lblEmail.TabIndex = 95;
            this.lblEmail.Text = "Email";
            // 
            // txtPhones
            // 
            this.txtPhones.CheckTextSearched = false;
            this.txtPhones.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtPhones.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtPhones.Location = new System.Drawing.Point(99, 154);
            this.txtPhones.MaxLength = 128;
            this.txtPhones.Name = "txtPhones";
            this.txtPhones.OldValue = null;
            this.txtPhones.ReadOnly = true;
            this.txtPhones.Size = new System.Drawing.Size(296, 20);
            this.txtPhones.TabIndex = 11;
            this.txtPhones.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtPhones.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtPhones.Value = ((object)(resources.GetObject("txtPhones.Value")));
            // 
            // txtEmail
            // 
            this.txtEmail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtEmail.CheckTextSearched = false;
            this.txtEmail.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtEmail.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtEmail.Location = new System.Drawing.Point(487, 154);
            this.txtEmail.MaxLength = 128;
            this.txtEmail.Name = "txtEmail";
            this.txtEmail.OldValue = null;
            this.txtEmail.ReadOnly = true;
            this.txtEmail.Size = new System.Drawing.Size(295, 20);
            this.txtEmail.TabIndex = 12;
            this.txtEmail.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtEmail.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.txtEmail.Value = ((object)(resources.GetObject("txtEmail.Value")));
            // 
            // txtNgay_HL1
            // 
            this.txtNgay_HL1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtNgay_HL1.DateTimeFormat  = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_HL1.Enabled = false;
            this.txtNgay_HL1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_HL1.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_HL1.Location = new System.Drawing.Point(104, 496);
            this.txtNgay_HL1.Mask = "00/00/0000";
            this.txtNgay_HL1.Name = "txtNgay_HL1";
            this.txtNgay_HL1.OldValue = null;
            this.txtNgay_HL1.Size = new System.Drawing.Size(79, 20);
            this.txtNgay_HL1.TabIndex = 17;
            this.txtNgay_HL1.Value = ((object)(resources.GetObject("txtNgay_HL1.Value")));
            this.txtNgay_HL1.MaskInputRejected += new System.Windows.Forms.MaskInputRejectedEventHandler(this.txtNgay_HL1_MaskInputRejected);
            // 
            // lblNgay_HL1
            // 
            this.lblNgay_HL1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblNgay_HL1.AutoSize = true;
            this.lblNgay_HL1.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_HL1.Location = new System.Drawing.Point(17, 499);
            this.lblNgay_HL1.Name = "lblNgay_HL1";
            this.lblNgay_HL1.Size = new System.Drawing.Size(74, 14);
            this.lblNgay_HL1.TabIndex = 99;
            this.lblNgay_HL1.Text = "Có hiệu lực từ";
            // 
            // lblNgay_HL2
            // 
            this.lblNgay_HL2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblNgay_HL2.AutoSize = true;
            this.lblNgay_HL2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblNgay_HL2.Location = new System.Drawing.Point(192, 499);
            this.lblNgay_HL2.Name = "lblNgay_HL2";
            this.lblNgay_HL2.Size = new System.Drawing.Size(54, 14);
            this.lblNgay_HL2.TabIndex = 99;
            this.lblNgay_HL2.Text = "Đến ngày";
            // 
            // txtNgay_HL2
            // 
            this.txtNgay_HL2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtNgay_HL2.DateTimeFormat  = QMVnSoft.Controls.TextDate.DateTimeFormatType.Date;
            this.txtNgay_HL2.Enabled = false;
            this.txtNgay_HL2.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtNgay_HL2.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Overwrite;
            this.txtNgay_HL2.Location = new System.Drawing.Point(252, 496);
            this.txtNgay_HL2.Mask = "00/00/0000";
            this.txtNgay_HL2.Name = "txtNgay_HL2";
            this.txtNgay_HL2.OldValue = null;
            this.txtNgay_HL2.Size = new System.Drawing.Size(79, 20);
            this.txtNgay_HL2.TabIndex = 18;
            this.txtNgay_HL2.Value = ((object)(resources.GetObject("txtNgay_HL2.Value")));
            // 
            // grdDetail
            // 
            this.grdDetail.AllowUserToAddRows = false;
            this.grdDetail.AllowUserToDeleteRows = false;
            this.grdDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.grdDetail.CheckAutoSize = true;
            this.grdDetail.CheckColor = false;
            this.grdDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdDetail.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.Column9,
            this.Column10,
            this.Column11,
            this.Column12,
            this.Column13,
            this.Column14,
            this.Column15,
            this.Column16,
            this.Column17,
            this.Column18,
            this.Column19});
            this.grdDetail.Font = new System.Drawing.Font("Arial", 8.25F);
            this.grdDetail.Location = new System.Drawing.Point(0, 201);
            this.grdDetail.Name = "grdDetail";
            this.grdDetail.Size = new System.Drawing.Size(794, 268);
            this.grdDetail.TabIndex = 15;
            // 
            // Column9
            // 
            this.Column9.DataPropertyName = "Ma_Vt";
            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.Column9.DefaultCellStyle = dataGridViewCellStyle1;
            this.Column9.DestinationFields = "Ten_Vt, Dvt";
            this.Column9.DisabledForeColor = System.Drawing.Color.Blue;
            this.Column9.EmptyIsValid = true;
            this.Column9.FirstFilter = "Is_Stop = \'1\'";
            this.Column9.HeaderText = "Mã vật tư";
            this.Column9.Name = "Column9";
            this.Column9.ReadOnly = true;
            this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column9.SourceFields = "Ten_Vt, Dvt";
            this.Column9.TableName = "DMVT";
            this.Column9.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.Column9.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.Column9.Width = 55;
            // 
            // Column10
            // 
            this.Column10.DataPropertyName = "Ten_Vt";
            this.Column10.HeaderText = "Tên vật tư";
            this.Column10.Name = "Column10";
            this.Column10.ReadOnly = true;
            this.Column10.Width = 132;
            // 
            // Column11
            // 
            this.Column11.DataPropertyName = "Dvt";
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.Column11.DefaultCellStyle = dataGridViewCellStyle2;
            this.Column11.DisabledForeColor = System.Drawing.Color.Blue;
            this.Column11.HeaderText = "Đvt";
            this.Column11.Name = "Column11";
            this.Column11.ReadOnly = true;
            this.Column11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column11.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.Column11.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.Column11.Width = 30;
            // 
            // Column12
            // 
            this.Column12.DataPropertyName = "Ma_Bp";
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.Column12.DefaultCellStyle = dataGridViewCellStyle3;
            this.Column12.DestinationFields = "Ten_Bp";
            this.Column12.DisabledForeColor = System.Drawing.Color.Blue;
            this.Column12.EmptyIsValid = true;
            this.Column12.HeaderText = "Bộ phận";
            this.Column12.Name = "Column12";
            this.Column12.ReadOnly = true;
            this.Column12.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column12.SourceFields = "Ten_Bp";
            this.Column12.TableName = "DMBP";
            this.Column12.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.Column12.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.Column12.Width = 55;
            // 
            // Column13
            // 
            this.Column13.DataPropertyName = "Ma_Hd";
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.Column13.DefaultCellStyle = dataGridViewCellStyle4;
            this.Column13.DestinationFields = "Ten_Hd";
            this.Column13.DisabledForeColor = System.Drawing.Color.Blue;
            this.Column13.EmptyIsValid = true;
            this.Column13.HeaderText = "Hợp đồng";
            this.Column13.Name = "Column13";
            this.Column13.ReadOnly = true;
            this.Column13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column13.SourceFields = "Ten_Hd";
            this.Column13.TableName = "DMHD";
            this.Column13.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.ItemCode;
            this.Column13.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.Column13.Width = 55;
            // 
            // Column14
            // 
            this.Column14.DataPropertyName = "Ghi_Chu";
            this.Column14.HeaderText = "Ghi chú";
            this.Column14.Name = "Column14";
            this.Column14.ReadOnly = true;
            this.Column14.Width = 131;
            // 
            // Column15
            // 
            this.Column15.DataPropertyName = "So_Luong9";
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column15.DefaultCellStyle = dataGridViewCellStyle5;
            this.Column15.HeaderText = "Số lượng";
            this.Column15.Name = "Column15";
            this.Column15.ReadOnly = true;
            this.Column15.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column15.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.Quantity;
            this.Column15.Width = 58;
            // 
            // Column16
            // 
            this.Column16.DataPropertyName = "Gia_Nt9";
            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column16.DefaultCellStyle = dataGridViewCellStyle6;
            this.Column16.HeaderText = "Đơn giá";
            this.Column16.Name = "Column16";
            this.Column16.ReadOnly = true;
            this.Column16.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column16.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignPrice;
            this.Column16.Width = 65;
            // 
            // Column17
            // 
            this.Column17.DataPropertyName = "Tien_Nt";
            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column17.DefaultCellStyle = dataGridViewCellStyle7;
            this.Column17.HeaderText = "Thành tiền";
            this.Column17.Name = "Column17";
            this.Column17.ReadOnly = true;
            this.Column17.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column17.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.Column17.Width = 75;
            // 
            // Column18
            // 
            this.Column18.DataPropertyName = "Tien_Nt1";
            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
            this.Column18.DefaultCellStyle = dataGridViewCellStyle8;
            this.Column18.HeaderText = "Chi phí";
            this.Column18.Name = "Column18";
            this.Column18.ReadOnly = true;
            this.Column18.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column18.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.Column18.Width = 75;
            // 
            // Column19
            // 
            this.Column19.DataPropertyName = "Firsted";
            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            this.Column19.DefaultCellStyle = dataGridViewCellStyle9;
            this.Column19.DisabledForeColor = System.Drawing.Color.Blue;
            this.Column19.HeaderText = "U T";
            this.Column19.InputMask = "C,K";
            this.Column19.Name = "Column19";
            this.Column19.ReadOnly = true;
            this.Column19.Resizable = System.Windows.Forms.DataGridViewTriState.False;
            this.Column19.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
            this.Column19.UserTextLength  = QMVnSoft.AppInstance.TextControlLength.None;
            this.Column19.UserTrimMode  = QMVnSoft.AppInstance.TextControlTrimMode.Right;
            this.Column19.Width = 20;
            // 
            // txtTTien_Nt
            // 
            this.txtTTien_Nt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTTien_Nt.BackColor = System.Drawing.Color.White;
            this.txtTTien_Nt.Enabled = false;
            this.txtTTien_Nt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTTien_Nt.ForeColor = System.Drawing.Color.Black;
            this.txtTTien_Nt.Location = new System.Drawing.Point(674, 496);
            this.txtTTien_Nt.Name = "txtTTien_Nt";
            this.txtTTien_Nt.NumericValue = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.txtTTien_Nt.OldValue = null;
            this.txtTTien_Nt.Size = new System.Drawing.Size(108, 20);
            this.txtTTien_Nt.TabIndex = 102;
            this.txtTTien_Nt.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtTTien_Nt.UserTextNumericFormat  = QMVnSoft.AppInstance.TextNumericFormat.ForeignAmount;
            this.txtTTien_Nt.Value = ((object)(resources.GetObject("txtTTien_Nt.Value")));
            // 
            // lblTTien_Nt
            // 
            this.lblTTien_Nt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.lblTTien_Nt.AutoSize = true;
            this.lblTTien_Nt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTTien_Nt.Location = new System.Drawing.Point(617, 499);
            this.lblTTien_Nt.Name = "lblTTien_Nt";
            this.lblTTien_Nt.Size = new System.Drawing.Size(51, 14);
            this.lblTTien_Nt.TabIndex = 101;
            this.lblTTien_Nt.Text = "Tổng tiền";
            // 
            // FormCTBGViewer
            // 
            this.ClientSize = new System.Drawing.Size(794, 539);
            this.Controls.Add(this.txtTTien_Nt);
            this.Controls.Add(this.lblTTien_Nt);
            this.Controls.Add(this.grdDetail);
            this.Controls.Add(this.txtNgay_HL2);
            this.Controls.Add(this.lblNgay_HL2);
            this.Controls.Add(this.txtNgay_HL1);
            this.Controls.Add(this.lblNgay_HL1);
            this.Controls.Add(this.txtMa_Tte);
            this.Controls.Add(this.txtTy_Gia);
            this.Controls.Add(this.txtEmail);
            this.Controls.Add(this.txtPhones);
            this.Controls.Add(this.txtDia_Chi);
            this.Controls.Add(this.txtOng_Ba);
            this.Controls.Add(this.txtTen_Dt);
            this.Controls.Add(this.lblMa_Tte);
            this.Controls.Add(this.lblEmail);
            this.Controls.Add(this.txtMa_Dt);
            this.Controls.Add(this.lblPhones);
            this.Controls.Add(this.lblDia_Chi);
            this.Controls.Add(this.lblOng_Ba);
            this.Controls.Add(this.lblMa_Dt);
            this.Controls.Add(this.txtDesc_EN);
            this.Controls.Add(this.txtGhi_Chu);
            this.Controls.Add(this.txtDien_Giai);
            this.Controls.Add(this.txtTen_Nv);
            this.Controls.Add(this.txtTen_Hd);
            this.Controls.Add(this.txtTen_Bp);
            this.Controls.Add(this.lblDesc_EN);
            this.Controls.Add(this.txtMa_Nv);
            this.Controls.Add(this.lblGhi_Chu);
            this.Controls.Add(this.lblMa_Nv);
            this.Controls.Add(this.lblDien_Giai);
            this.Controls.Add(this.txtMa_Hd);
            this.Controls.Add(this.lblMa_Hd);
            this.Controls.Add(this.txtMa_Bp);
            this.Controls.Add(this.lblMa_Bp);
            this.Name = "FormCTBGViewer";
            this.Controls.SetChildIndex(this.lblPhan_Loai, 0);
            this.Controls.SetChildIndex(this.txtSo_Ct, 0);
            this.Controls.SetChildIndex(this.txtNgay_Ps, 0);
            this.Controls.SetChildIndex(this.txtNgay_Ct, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai1, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai2, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai3, 0);
            this.Controls.SetChildIndex(this.lblMa_Bp, 0);
            this.Controls.SetChildIndex(this.txtMa_Bp, 0);
            this.Controls.SetChildIndex(this.lblMa_Hd, 0);
            this.Controls.SetChildIndex(this.txtMa_Hd, 0);
            this.Controls.SetChildIndex(this.lblDien_Giai, 0);
            this.Controls.SetChildIndex(this.lblMa_Nv, 0);
            this.Controls.SetChildIndex(this.lblGhi_Chu, 0);
            this.Controls.SetChildIndex(this.txtMa_Nv, 0);
            this.Controls.SetChildIndex(this.lblDesc_EN, 0);
            this.Controls.SetChildIndex(this.txtTen_Bp, 0);
            this.Controls.SetChildIndex(this.txtTen_Hd, 0);
            this.Controls.SetChildIndex(this.txtTen_Nv, 0);
            this.Controls.SetChildIndex(this.txtDien_Giai, 0);
            this.Controls.SetChildIndex(this.txtGhi_Chu, 0);
            this.Controls.SetChildIndex(this.txtDesc_EN, 0);
            this.Controls.SetChildIndex(this.lblMa_Dt, 0);
            this.Controls.SetChildIndex(this.lblOng_Ba, 0);
            this.Controls.SetChildIndex(this.lblDia_Chi, 0);
            this.Controls.SetChildIndex(this.lblPhones, 0);
            this.Controls.SetChildIndex(this.txtMa_Dt, 0);
            this.Controls.SetChildIndex(this.lblEmail, 0);
            this.Controls.SetChildIndex(this.lblMa_Tte, 0);
            this.Controls.SetChildIndex(this.txtTen_Dt, 0);
            this.Controls.SetChildIndex(this.txtOng_Ba, 0);
            this.Controls.SetChildIndex(this.txtDia_Chi, 0);
            this.Controls.SetChildIndex(this.txtPhones, 0);
            this.Controls.SetChildIndex(this.txtEmail, 0);
            this.Controls.SetChildIndex(this.txtTy_Gia, 0);
            this.Controls.SetChildIndex(this.txtMa_Tte, 0);
            this.Controls.SetChildIndex(this.lblNgay_HL1, 0);
            this.Controls.SetChildIndex(this.txtNgay_HL1, 0);
            this.Controls.SetChildIndex(this.lblNgay_HL2, 0);
            this.Controls.SetChildIndex(this.txtNgay_HL2, 0);
            this.Controls.SetChildIndex(this.grdDetail, 0);
            this.Controls.SetChildIndex(this.lblTTien_Nt, 0);
            this.Controls.SetChildIndex(this.txtTTien_Nt, 0);
            ((System.ComponentModel.ISupportInitialize)(this.grdDetail)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        internal override void OnResetControls()
        {
            base.DetailGridBrowser = this.grdDetail;
            int num = 0;
            if (base.AppInvoiceParameters.AllowDepartmentControl != 1)
            {
                num += this.txtMa_Hd.Top - this.txtMa_Bp.Top;
                this.lblMa_Bp.Visible = false;
                this.txtMa_Bp.Visible = false;
                this.txtTen_Bp.Visible = false;
            }
            if (base.AppInvoiceParameters.AllowContractControl != 1)
            {
                num += this.txtDien_Giai.Top - this.txtMa_Hd.Top;
                this.lblMa_Hd.Visible = false;
                this.txtMa_Hd.Visible = false;
                this.txtTen_Hd.Visible = false;
            }
            if (num != 0)
            {
                if (base.AppInvoiceParameters.AllowContractControl == 1)
                {
                    this.lblMa_Hd.Top -= num;
                    this.txtMa_Hd.Top -= num;
                    this.txtTen_Hd.Top -= num;
                }
                this.lblMa_Dt.Top -= num;
                this.txtMa_Dt.Top -= num;
                this.txtTen_Dt.Top -= num;
                this.lblOng_Ba.Top -= num;
                this.txtOng_Ba.Top -= num;
                this.lblDia_Chi.Top -= num;
                this.txtDia_Chi.Top -= num;
                this.lblPhones.Top -= num;
                this.txtPhones.Top -= num;
                this.lblEmail.Top -= num;
                this.txtEmail.Top -= num;
                this.lblDien_Giai.Top -= num;
                this.txtDien_Giai.Top -= num;
                this.lblDesc_EN.Top -= num;
                this.txtDesc_EN.Top -= num;
                this.grdDetail.Top -= num;
                this.grdDetail.Height += num;
            }
            if (!base.AppInvoiceParameters.BilingualUsed)
            {
                this.lblDesc_EN.Visible = false;
                this.txtDesc_EN.Visible = false;
                this.txtDien_Giai.Width = (this.txtDesc_EN.Left + this.txtDesc_EN.Width) - this.txtDien_Giai.Left;
                this.txtDien_Giai.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
            }
            if (base.AppInvoiceParameters.AllowDepartmentControl != 2)
            {
                base.DetailGridBrowser.Columns[3].Visible = false;
            }
            if (base.AppInvoiceParameters.AllowContractControl != 2)
            {
                base.DetailGridBrowser.Columns[4].Visible = false;
            }
            if (!base.AppInvoiceParameters.AllowQuantityControl)
            {
                base.DetailGridBrowser.Columns[6].Visible = false;
                base.DetailGridBrowser.Columns[8].Visible = false;
            }
            if (!base.AppInvoiceParameters.AllowExpensesControl)
            {
                base.DetailGridBrowser.Columns[9].Visible = false;
            }
            if (base.AppInvoiceParameters.FreeFields <= 0)
            {
                num = base.txtMa_Loai1.Top - this.txtNgay_HL1.Top;
                this.lblGhi_Chu.Top += num;
                this.txtGhi_Chu.Top += num;
                this.lblNgay_HL1.Top += num;
                this.txtNgay_HL1.Top += num;
                this.lblNgay_HL2.Top += num;
                this.txtNgay_HL2.Top += num;
                this.lblTTien_Nt.Top += num;
                this.txtTTien_Nt.Top += num;
                this.grdDetail.Height += num;
            }
            base.OnResetControls();
        }

        protected override void OnResize(EventArgs e)
        {
            base.OnResize(e);
            if (this.txtOng_Ba != null)
            {
                int num = base.ClientSize.Width - 0xcb;
                this.txtOng_Ba.Width = num / 2;
                this.txtDia_Chi.Left = (this.txtOng_Ba.Left + this.txtOng_Ba.Width) + 0x5c;
                this.txtDia_Chi.Width = num - this.txtOng_Ba.Width;
                this.lblDia_Chi.Left = (this.txtDia_Chi.Left - this.lblDia_Chi.Width) - 6;
                this.txtPhones.Width = this.txtOng_Ba.Width;
                this.txtEmail.Left = this.txtDia_Chi.Left;
                this.txtEmail.Width = this.txtDia_Chi.Width;
                this.lblEmail.Left = (this.txtEmail.Left - this.lblEmail.Width) - 6;
                if ((base.AppInvoiceParameters != null) && base.AppInvoiceParameters.BilingualUsed)
                {
                    this.txtDien_Giai.Width = this.txtOng_Ba.Width;
                    this.txtDesc_EN.Left = this.txtDia_Chi.Left;
                    this.txtDesc_EN.Width = this.txtDia_Chi.Width;
                    this.lblDesc_EN.Left = (this.txtDesc_EN.Left - this.lblDesc_EN.Width) - 6;
                }
            }
        }

        internal override void OnShow()
        {
            base.OnShow();
            this.txtMa_Tte.Value = base.LocalMasterRow["Ma_Tte"];
            this.txtTy_Gia.Value = base.LocalMasterRow["Ty_Gia"];
            this.txtMa_Nv.Value = base.LocalMasterRow["Ma_Nv"];
            this.txtTen_Nv.Value = base.LocalMasterRow["Ten_Nv"];
            this.txtMa_Bp.Value = base.LocalMasterRow["Ma_Bp"];
            this.txtTen_Bp.Value = base.LocalMasterRow["Ten_Bp"];
            this.txtMa_Hd.Value = base.LocalMasterRow["Ma_Hd"];
            this.txtTen_Hd.Value = base.LocalMasterRow["Ten_Hd"];
            this.txtMa_Dt.Value = base.LocalMasterRow["Ma_Dt"];
            this.txtTen_Dt.Value = base.LocalMasterRow["Ten_Dt"];
            this.txtOng_Ba.Value = base.LocalMasterRow["Ong_Ba"];
            this.txtDia_Chi.Value = base.LocalMasterRow["Dia_Chi"];
            this.txtPhones.Value = base.LocalMasterRow["Phones"];
            this.txtEmail.Value = base.LocalMasterRow["Email"];
            this.txtDien_Giai.Value = base.LocalMasterRow["Dien_Giai"];
            this.txtDesc_EN.Value = base.LocalMasterRow["Desc_EN"];
            this.txtGhi_Chu.Value = base.LocalMasterRow["Ghi_Chu"];
            this.txtNgay_HL1.Value = base.LocalMasterRow["Ngay_HL1"];
            this.txtNgay_HL2.Value = base.LocalMasterRow["Ngay_HL2"];
            this.txtTTien_Nt.Value = base.LocalMasterRow["TTien_Nt"];
        }

        private void txtNgay_HL1_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
        {
        }
    }
}

